package me.littlesquid.bettertp;

import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.inventory.PlayerInventory;


public class LoginEvent implements Listener {
    @EventHandler
    public void  onLogin(PlayerJoinEvent event){
        Player  player=event.getPlayer();
        PlayerInventory playerInventory=player.getInventory();
        if (!playerInventory.contains(compass.getcompass())){
            playerInventory.addItem(compass.getcompass());
        }
    }


}
